﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace WebAPI.Models
{
    public class NewsInfo
    {
        [Key]
        public int NewsId { get; set; }
        public string NewsName { get; set; }
        public string NewsContent { get; set; }
        public string NewsImg { get; set; }
        public DateTime NewsPostTime { get; set; }
        public int NewsType { get; set; }

        #region 扩展字段
        [ReadOnly(true)]
        public string NewsTypeName { get; set; }
        [ReadOnly(true)]
        public string DisplayTime { get; set; }
        #endregion
    }
}